// components/broadItem/broadItem.js
import {
  navigateTo
} from '../../common/wx'

Component({
  /**
   * 组件的属性列表
   */
  properties: {
    item: {
      type: Object,
      value: {}
    }
  },

  /**
   * 组件的初始数据
   */
  data: {

  },

  /**
   * 组件的方法列表
   */
  methods: {
    handleClick: function (e) {
      const { channelname, name } = e.currentTarget.dataset;
      navigateTo({
        url: `/pages/broadcastDetail/broadcastDetail?channelname=${channelname}&name=${name}`
      })
    }
  }
})